﻿using System;

namespace ZyGame.Game
{
    public enum Visibility
    {
        Actived,
        Inactived,
    }
    public sealed class Entity : IDisposable
    {
        public int guid { get; }

        public Visibility visibility { get; set; }

        public World world { get; private set; }

        internal Entity(int guild, World world)
        {
            this.guid = guild;
            this.world = world;
        }

        public void Dispose()
        {
            world = null;
            visibility = Visibility.Inactived;
        }
    }
}
